package org.freespace.service;

import org.freespace.model.JmxArguments;
import org.freespace.model.JmxScript;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;

/**
 * <p>
 * jmx脚本文件表 服务类
 * </p>
 *
 * @author liuqi
 * @since 2023-04-27
 */
public interface IJmxScriptService extends IService<JmxScript> {

    void addOrEditJmxScript(MultipartFile file, JmxScript script) throws IOException;

    void initThreadGroup1(JmxScript script) throws Exception;

    void initProperties();

    List<JmxArguments> getArguments(int id);


    void updateArgument(JmxArguments arguments) throws Exception;

    File readFSScriptFileToLocal(JmxScript script) throws IOException;

    void overrideRemoteFile(Integer jmxId, String fileName, InputStream inputStream);
}
